home *** CD-ROM | disk | FTP | other *** search
- on WindowFunctions
- global moving, MouseMGR
- if the memberNum of sprite 1 = the memberNum of member "navpal" then
- set Check to rect(344, 0, 388, 19)
- set NewMember to the memberNum of member "nav_zip"
- else
- set Check to rect(0, 0, 40, 19)
- set NewMember to the memberNum of member "navpal"
- end if
- if inside(point(the mouseH, the mouseV), Check) then
- if moving then
- nothing()
- else
- puppetSound(4, "Whoosh")
- tell the stage
- RollWindow("Navigation")
- end tell
- set the memberNum of sprite 1 to NewMember
- set MouseMGR to EMPTY
- end if
- end if
- end
-
- on MoveMyWindow
- global CatchMouseX, CatchMouseY, moving
- if moving then
- set DeltaX to the mouseH - CatchMouseX
- set DeltaY to the mouseV - CatchMouseY
- tell the stage
- moveWindow("Navigation", DeltaX, DeltaY)
- end tell
- end if
- end
-
- on NavRoll
- global MouseMGR
- set Myrects to [rect(182, 42, 235, 60), rect(155, 27, 202, 41), rect(114, 30, 152, 49), rect(218, 28, 294, 41), rect(261, 42, 325, 57), rect(69, 43, 112, 59), rect(13, 17, 71, 67)]
- repeat with a = 1 to count(Myrects)
- if inside(point(the mouseH, the mouseV), getAt(Myrects, a)) then
- PurgeWindows()
- sound fadeOut 3
- sound stop 3
- sound fadeIn 3
- tell the stage
- Nav(a)
- end tell
- set MouseMGR to EMPTY
- return
- end if
- end repeat
- if inside(point(the mouseH, the mouseV), rect(325, 18, 379, 68)) then
- PurgeWindows()
- set MouseMGR to EMPTY
- sound fadeOut 3
- sound stop 3
- sound fadeIn 3
- removewindow("Navigation")
- tell the stage
- quit()
- end tell
- end if
- end
-
- on mouseDown
- global CatchMouseX, CatchMouseY, moving
- set CatchMouseX to the mouseH
- set CatchMouseY to the mouseV
- if inside(point(the mouseH, the mouseV), rect(41, 0, 344, 25)) then
- set moving to 1
- end if
- set MyTestrects to [rect(10, 23, 68, 70), rect(69, 48, 124, 69), rect(108, 28, 159, 49), rect(165, 31, 214, 47), rect(181, 49, 238, 66), rect(216, 26, 290, 47), rect(258, 49, 325, 68), rect(326, 25, 377, 70)]
- set Myclickedrects to [rect(22, 23, 69, 73), rect(66, 50, 124, 64), rect(107, 35, 156, 50), rect(163, 30, 206, 47), rect(181, 46, 232, 65), rect(214, 34, 292, 49), rect(257, 48, 328, 62), rect(321, 26, 365, 70)]
- set MyClickGRFX to ["homeclck", "timeclck", "stylclck", "millclck", "branclck", "tretclck", "mrktclck", "quitclck"]
- repeat with d = 1 to count(MyTestrects)
- if inside(point(the mouseH, the mouseV), getAt(MyTestrects, d)) then
- puppetSprite(50, 1)
- set the memberNum of sprite 50 to member getAt(MyClickGRFX, d)
- set the rect of sprite 50 to getAt(Myclickedrects, d)
- updateStage()
- end if
- end repeat
- end
-